home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / ophel001.swf / scripts / DefineButton2_619 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2010-08-12  |  593 b   |  36 lines

  1. on(release){
  2.    Random = random(3);
  3.    tellTarget(HsNeg)
  4.    {
  5.       nextFrame();
  6.    }
  7.    if(Random == 1)
  8.    {
  9.       if(eval("/Variables:PersoPres") == 2)
  10.       {
  11.          Ran = random(2);
  12.          if(Ran == 1)
  13.          {
  14.             tellTarget(VoixGregor)
  15.             {
  16.                play();
  17.             }
  18.          }
  19.          else
  20.          {
  21.             tellTarget(VoixPrescott)
  22.             {
  23.                play();
  24.             }
  25.          }
  26.       }
  27.       else
  28.       {
  29.          tellTarget(VoixGregor)
  30.          {
  31.             play();
  32.          }
  33.       }
  34.    }
  35. }
  36.